import request from '@/utils/request'

// 查询调度方案列表
export function listPlan(query) {
  return request({
    url: '/dataprocess/plan/list',
    method: 'get',
    params: query
  })
}

// 查询调度方案详细
export function getPlan(scheduleplanid) {
  return request({
    url: '/dataprocess/plan/' + scheduleplanid,
    method: 'get'
  })
}

// 新增调度方案
export function addPlan(data) {
  return request({
    url: '/dataprocess/plan',
    method: 'post',
    data: data
  })
}

// 修改调度方案
export function updatePlan(data) {
  return request({
    url: '/dataprocess/plan',
    method: 'put',
    data: data
  })
}

// 删除调度方案
export function delPlan(scheduleplanid) {
  return request({
    url: '/dataprocess/plan/' + scheduleplanid,
    method: 'delete'
  })
}
